﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestWpfApplication
{

    public enum Sex
    {
        Female,
        Male
    }

    public class Human
    {

        #region members

        #region private

        private int age;

        private string firstName;

        private string lastName;

        private Sex sex;

        #endregion //private

        #region public

        public Sex Sex
        {
            get { return sex; }
            set { sex = value; }
        }

        public int Age
        {
            get { return age; }
            set
            {
                if (value < 0 || value > 200)
                    return;
                age = value;
            }
        }

        public string LastName
        {
            get { return lastName; }
            set { lastName = value; }
        }

        public string FirstName
        {
            get { return firstName; }
            set { firstName = value; }
        }

        #endregion //public

        #endregion //members

        #region constructors

        public Human(int age = 0, string firstName = "", string lastName = "", Sex sex = Sex.Male)
        {
            this.Age = age;
            this.FirstName = firstName;
            this.LastName = lastName;
            this.Sex = sex;
        }

        public Human(int age):this(age, string.Empty, string.Empty, Sex.Male){}

        public Human(string lastName, string firstName):this(0, firstName, lastName, Sex.Male){}

        public Human(int age, Sex sex) : this(age, string.Empty, string.Empty, sex) { }

        public Human(string lastName, string firstName, Sex sex) : this(0, firstName, lastName, sex) { }

        #endregion //constructors

    }
}
